#include <vector>
#include <iostream>
#include <string>

using namespace std;

class human
{
    protected:
        string _name;
    public:
        human() 
        {
        };
        ~human()
        {
            cout << _name << endl;
        };
        string getName() {return _name;};
        void setName(string aName) {_name = aName;};
};

class man : public human
{
};

int main()
{
    vector<man*> daddys;
    man* daddy1 = new man(); daddy1->setName("daddy1");
    daddys.push_back(daddy1);

    daddys[0]->setName("daddy3");

    delete daddy1;

    return 1;
}
